package prvocisla;

class prvocisla {

    static int a, x = 2, y;

    public static void main(String args[]) {


        while (true) {

            if (x % 2 != 0 || x == 2) {
                for (y = 2; y <= x / 2; y++) {
                    if (x % y == 0) {
                        break;
                    }
                }

                if (y > x / 2) {
                    System.out.println(x);
                    
                }
            }
            x++;
        }

    }
}
